/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package AdvanceMath.R3;

import AdvanceMath.Vector3;

/**
 *
 * @author RomulusAaron
 */
public class Cylinder {
    Circle3 base;
    Vector3 normal; //ideally, normal length should equal length
    double length;
    
    public Cylinder(Circle3 base, Vector3 normal, double length){
        this.base=base;
        this.normal=normal;
        this.length=length;
    }
    
    public double getRadius(){
        return base.radius;
    }
    
    public boolean interset(Cylinder c){
        double dot=normal.dotProduct(c.normal);
        if(dot>-0.0001 && dot <0.0001){
            return false;
        }
        
        Vector3 BasePrime=base.getCenter();
        BasePrime.add(normal);
        
        Vector3 CPrime=c.base.getCenter();
        CPrime.add(c.normal);
        
        return false;
    }
    
    public boolean intersect(Triangle3 t){
        return false;
    }
    
    public boolean intersect(RectPrism rp){
        return false;
    }
    public boolean intersect(Rect3 r){
        return false;
    }
}
